/**
 * Copyright 2016-2018 mobaas.com
 */
package com.mobaas.devops.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.mobaas.devops.model.Container;
import com.mobaas.devops.model.ContainerStat;

/**
 * 
 * @author billy zhang
 * 
 */
public interface ContainerService {

	Container selectContainerById(String containerId);

	Container selectContainerByHost(String host);
	
	int updateContainer(Container cont);

	void insertContainer(Container cont);
	
	void insertContainerStat(ContainerStat stat);
	
	List<ContainerStat> selectContainerStatTotalByApp(String appId, Date startDate, int interval);

	List<ContainerStat> selectContainerStatTotalByHostIp(String hostIp, Date startDate);

	Map<String, Integer> selectLastContainerStatMap();
	
}
